import requests from './request.js'

// 获取菜单列表
export function getMenuList() {
	return requests({
		url: '/system/video/type/getVideoTypeData',
		method: 'get'
	})
}

// 添加菜单
export function addMenu(menuInfo) {
	return requests({
		url: '/system/menu/addMenu',
		method: 'post',
		data: menuInfo
	})
}

// 编辑菜单
export function updateMenu(menuInfo) {
	return requests({
		url: '/system/menu/updateMenu',
		method: 'put',
		data: menuInfo
	})
}

// 删除菜单
export function deleteMenu(mid) {
	return requests({
		url: '/system/menu/deleteMenu/' + mid,
		method: 'delete'
	})
}
